import request from "@/utils/request";

// 查询自查列表
export function listExamination(query) {
  return request({
    url: "/zp/selfExamination/list",
    method: "get",
    params: query,
  });
}

// 查询自查详细
export function getExamination(id) {
  return request({
    url: "/zp/selfExamination/" + id,
    method: "get",
  });
}

// 新增自查
export function addExamination(data) {
  return request({
    url: "/zp/selfExamination",
    method: "post",
    data: data,
  });
}

// 修改自查
export function updateExamination(data) {
  return request({
    url: "/zpSelf/examination",
    method: "put",
    data: data,
  });
}

// 删除自查
export function delExamination(id) {
  return request({
    url: "/zpSelf/examination/" + id,
    method: "delete",
  });
}
